import { request } from './request'

const get = () => {
	return request({
		url: `/fileTag`,
		method: 'get',
	})
}

const add = (data: object) => {
	return request({
		url: `/fileTag`,
		method: 'post',
		data: data,
	})
}

const del = (id: number) => {
	return request({
		url: `/fileTag/${id}`,
		method: 'get',
	})
}

const update = (data: object) => {
	return request({
		url: `/fileTag/update`,
		method: 'post',
		data: data,
	})
}

export default {
	get,
	add,
	del,
	update,
}
